package com.xuebank.nfe.nfecar.model

import android.annotation.SuppressLint
import android.os.Parcel
import android.os.Parcelable
import com.google.gson.annotations.SerializedName


/**
 * Created by admin Mr.WANG 2017/7/26.
 */
data class UsersModel constructor(@SerializedName("X-Sso-Token") var token:String? = null )
    :Parcelable{

    companion object {
        @JvmField val CREATOR: Parcelable.Creator<UsersModel> = object : Parcelable.Creator<UsersModel> {
            override fun createFromParcel(source: Parcel): UsersModel = UsersModel(source)
            override fun newArray(size: Int): Array<UsersModel?> = arrayOfNulls(size)
        }
    }
    constructor(source: Parcel) : this(
            source.readString()
    )

    override fun writeToParcel(dest: Parcel?, flags: Int) {
        dest?.writeString(token)

    }

    override fun describeContents()=0

}